﻿using DtoFw.Query;
using DtoFw.Result;
using System.Collections.Generic;

namespace DtoFw.Interface
{
    public interface IMenu
    {
        [Api(Router = "menu/get/{params}/role")]
        BaseGenericResult<List<RoleMenuResult>> QueryRoleMenus(long RoleId = 0);
        [Api(Router = "menu/get/pager")]
        BaseGenericResult<Pager<MenuInfoResult>> GetPager(MenuQuery query);
        [Api(Router = "menu/get/{params}/level")]
        BaseGenericResult<List<MenuLevelResult>> QueryToLevel(int level = 0);
        [Api(Router = "menu/post")]
        BaseResult Post(MenuInfo info);
        [Api(Router = "menu/put")]
        BaseResult Put(MenuEditInfo info);
        [Api(Router = "menu/delete")]
        BaseResult Delete(DeleteDto query);
        [Api(Router = "menu/get")]
        BaseGenericResult<MenuEditInfo> QueryModel(long Id);
    }
}
